<html>
<head><meta charset="utf-8"><title>LSP: Difference between Goto Definition and Goto Declaration · t-compiler/help · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/index.html">t-compiler/help</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/LSP.3A.20Difference.20between.20Goto.20Definition.20and.20Goto.20Declaration.html">LSP: Difference between Goto Definition and Goto Declaration</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="233198304"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/LSP%3A%20Difference%20between%20Goto%20Definition%20and%20Goto%20Declaration/near/233198304" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Viliam Vadocz <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/LSP.3A.20Difference.20between.20Goto.20Definition.20and.20Goto.20Declaration.html#233198304">(Apr 05 2021 at 16:52)</a>:</h4>
<p>What is the difference between Goto Declaration and Goto Definition in the Language Server Protocol?<br>
Goto Definition: <a href="https://microsoft.github.io/language-server-protocol/specifications/specification-current/#textDocument_definition">https://microsoft.github.io/language-server-protocol/specifications/specification-current/#textDocument_definition</a><br>
Goto Declaration: <a href="https://microsoft.github.io/language-server-protocol/specifications/specification-current/#textDocument_declaration">https://microsoft.github.io/language-server-protocol/specifications/specification-current/#textDocument_declaration</a></p>
<p>Should a language server implement both or only one?</p>
<p>I am not sure if this is the right place to ask.</p>



<a name="233198389"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/LSP%3A%20Difference%20between%20Goto%20Definition%20and%20Goto%20Declaration/near/233198389" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/LSP.3A.20Difference.20between.20Goto.20Definition.20and.20Goto.20Declaration.html#233198389">(Apr 05 2021 at 16:53)</a>:</h4>
<p><a class="stream" data-stream-id="185405" href="/#narrow/stream/185405-t-compiler.2Fwg-rls-2.2E0">#t-compiler/wg-rls-2.0</a> is a better place</p>



<a name="233198544"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/LSP%3A%20Difference%20between%20Goto%20Definition%20and%20Goto%20Declaration/near/233198544" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Viliam Vadocz <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/LSP.3A.20Difference.20between.20Goto.20Definition.20and.20Goto.20Declaration.html#233198544">(Apr 05 2021 at 16:54)</a>:</h4>
<p>Can I move it there? I am not experienced with Zulip.</p>



<a name="233198616"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/LSP%3A%20Difference%20between%20Goto%20Definition%20and%20Goto%20Declaration/near/233198616" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/LSP.3A.20Difference.20between.20Goto.20Definition.20and.20Goto.20Declaration.html#233198616">(Apr 05 2021 at 16:55)</a>:</h4>
<p>unfortunately that needs an admin for some reason, but it's fine to just ask a new question there :)</p>



<a name="233198732"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/LSP%3A%20Difference%20between%20Goto%20Definition%20and%20Goto%20Declaration/near/233198732" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Viliam Vadocz <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/LSP.3A.20Difference.20between.20Goto.20Definition.20and.20Goto.20Declaration.html#233198732">(Apr 05 2021 at 16:56)</a>:</h4>
<p>Thanks. Should I delete this topic then?<br>
Edit: Doesn't seem like that's an option. Nevermind.</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>